package com.longcai.entity.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author ZJ
 * @since 2019-03-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysRoleUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "userId", type = IdType.INPUT)
    private Integer userId;
    @TableField("roleId")
    private Integer roleId;

    public SysRoleUser(Integer userId, Integer roleId) {
        super();
        this.userId = userId;
        this.roleId = roleId;
    }
}
